package com.defect.controller.statistics;

import com.defect.bo.ResultBo;
import com.defect.service.statisticsService.SProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("project")
public class SProjectController {
    @Autowired
    private SProjectService projectService;
    /**
     * 查询所有项目
     * @return 返回所有项目集合
     */
    @GetMapping
    public ResultBo selectProject() throws Exception {
        return new ResultBo("200","success",null,projectService.selectProject());
    }
}
